What is the meaning of the word "cap off"?

Definitions:

  1. to finish or complete, as with some decisive action copy to clipboard verb
    • To cap off the festivities, we opened a bottle of champagne. copy to clipboard